﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Exhibition.Service;
using Exhibition.Dao.ViewModel;
namespace Exhibition.UserCenter
{
    public partial class ApplyPermit : BaseUserPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                GetDataList();
            }
        }

        private void GetDataList()
        {
            hfSiteId.Value = stmd.Id.ToString();
            if (LoginUser != null)
            {
                CreateUserId.Value = LoginUser.Id.ToString();
                CreateUserName.Value = LoginUser.UserName;

                List<BadgesModel> bdgs = CenterService.badgesService.GetBadList(LoginUser.Id, stmd.Id);
                repList.DataSource = bdgs;
                repList.DataBind();
            }
        }

        
    }
}